<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    @include('comm/layuiCommStyle')
    @include('comm/comm')
    <title>用户列表</title>
</head>
<body>



    <div style="padding: 15px;">
        <blockquote class="layui-elem-quote">
            用户列表
        </blockquote>
    </div>




    <div class="container">

            <table class="layui-table">
                <colgroup>
                    <col>
                    <col>
                    <col>
                    <col>
                    <col>
                    <col>
                    <col>
                    <col>
                    <col>
                    <col>
                    <col width="150">
                </colgroup>
                <thead>
                <tr>
                    <th>ID</th>
                    <th>用户名</th>
                    <th>密码</th>
                    <th>群id</th>
                    <th>群名称</th>
                    <th>群管理</th>
                    <th>pid</th>
                    <th>联系方式</th>
                    <th>激活</th>
                    <th>加入时间</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                @foreach ($res as $v)
                <tr>
                    <td>{{ $v->id }}</td>
                    <td>{{ $v->userName }}</td>
                    <td>{{ $v->passWord }}</td>
                    <td>{{ $v->groupId }}</td>
                    <td>{{ $v->groupTitle }}</td>
                    <td>{{ $v->groupName }}</td>
                    <td>{{ $v->PID }}</td>
                    <td>{{ $v->groupQQ }}</td>
                    <td>{{ $v->isAction }}</td>
                    <th>{{ $v->joinTime }}</th>
                    <th>
                        <div class="layui-btn-group">
                            <a href="{{url('/admins/promoter/editpromoterform/')}}?id={{ $v->id }}">
                                <button class="layui-btn layui-btn-sm">
                                    <i class="layui-icon">&#xe642;</i>
                                </button>
                            </a>
                            <button class="layui-btn layui-btn-sm" onclick="delItem('{{ $v->id }}')">
                                <i class="layui-icon">&#xe640;</i>
                            </button>
                        </div>

                    </th>
                </tr>
                @endforeach

                </tbody>
            </table>

    </div>
    <div id="pull_right">
        <div class="pull-right">
            {!! $res->links() !!}
        </div>
    </div>





</body>

<script>
function delItem(id)
{

    layui.use('layer', function(){
        var layer = layui.layer;

        layer.confirm('删除数据确认？？', {
            btn: ['删除数据', '取消删除'] //可以无限个按钮
            ,btn1: function(index, layero){
                //按钮【按钮1】的回调
                window.location.href="/admins/promoter/delpromoter?id="+id;
                return true;
            }
            ,btn2: function(index, layero){
                //按钮【按钮2】的回调
                layer.close(index);
                return false;
            }
        });
    });

}




</script>
</html>